package com.pss.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@ApiModel(value = "BOrder对象", description = "订单")
public class BOrder {
    @ApiModelProperty("订单ID")
//    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单编号")
    @NotBlank(message = "订单编号不能为空")
    private String orderNumber;

    @ApiModelProperty("商品ID")
    @NotNull(message = "商品ID不能为空")
    private Integer productId;
}
